:root {
  /** 小字体 */
  --font-size-small: 12px;
  /** 基础字体 */
  --font-size-base: 14px;
  /** 中字体 */
  --font-size-medium: 16px;
  /** 大字体 */
  --font-size-large: 18px;
  /** 超大字体 */
  --font-size-larger: 20px;
  /** 标题字体 */
  --font-size-title: 24px;
  /** 主颜色 */
  --primary-color: #1e7dcc;
  /** 链接色 */
  --link-color: #1e7dcc;
  /** 成功色 */
  --success-color: #31A368;
  /** 警告色 */
  --warning-color: #B37C36;
  /** 错误色 */
  --error-color: #B34444;
  /** 标题色 */
  --title-color: rgba(0, 0, 0, 0.85);
  /** 主文本色 */
  --text-color: #333333;
  /** 次文本色 */
  --text-color-secondary: rgba(51, 51, 51, 0.7);
  /** 禁用色 */
  --disabled-color: rgba(0, 0, 0, 0.25);
  /** 圆角 */
  --border-radius-base: 4px;
  /** 边框色 */
  --border-color: #d9d9d9;
  /** 阴影色 */
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  /** 图标颜色 */
  --icon-color: #333;
  /** 背景色 */
  --bg-color: #fff;
}
:root[data-theme="light"] {
  /** 主颜色 */
  --primary-color: #1e7dcc;
  /** 链接色 */
  --link-color: #1e7dcc;
  /** 成功色 */
  --success-color: #31A368;
  /** 警告色 */
  --warning-color: #B37C36;
  /** 错误色 */
  --error-color: #B34444;
  /** 标题色 */
  --title-color: rgba(0, 0, 0, 0.85);
  /** 主文本色 */
  --text-color: #333333;
  /** 次文本色 */
  --text-color-secondary: rgba(51, 51, 51, 0.7);
  /** 禁用色 */
  --disabled-color: rgba(0, 0, 0, 0.25);
  /** 圆角 */
  --border-radius-base: 4px;
  /** 边框色 */
  --border-color: #d9d9d9;
  /** 阴影色 */
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  /** 图标颜色 */
  --icon-color: #333;
  /** 背景色 */
  --bg-color: #fff;
}
:root[data-theme="dark"] {
  /** 主颜色 */
  --primary-color: #1e7dcc;
  /** 链接色 */
  --link-color: #1e7dcc;
  /** 成功色 */
  --success-color: #31A368;
  /** 警告色 */
  --warning-color: #B37C36;
  /** 错误色 */
  --error-color: #B34444;
  /** 标题色 */
  --title-color: rgba(0, 0, 0, 0.85);
  /** 主文本色 */
  --text-color: #333333;
  /** 次文本色 */
  --text-color-secondary: rgba(51, 51, 51, 0.7);
  /** 禁用色 */
  --disabled-color: rgba(0, 0, 0, 0.25);
  /** 圆角 */
  --border-radius-base: 4px;
  /** 边框色 */
  --border-color: #d9d9d9;
  /** 阴影色 */
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  /** 图标颜色 */
  --icon-color: #333;
  /** 背景色 */
  --bg-color: #fff;
}
.me-sender {
  width: 100%;
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-flow: column;
}
.me-sender .slide-enter-active,
.me-sender .slide-leave-active {
  transition: all 0.3s;
}
.me-sender .slide-enter-from,
.me-sender .slide-leave-to {
  opacity: 0;
  max-height: 0px;
}
.me-sender-image-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  height: 100%;
  padding: 12px;
  overflow: auto;
}
.me-sender-file {
  width: 236px;
  padding: 12px;
  height: 68px;
  box-sizing: border-box;
  position: relative;
  background-color: #f3f3f3;
  border-radius: 4px;
}
.me-sender-file:hover .close-icon {
  opacity: 1;
}
.me-sender-file .file-wrap {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.me-sender-file .file-wrap .file-logo .me-icon {
  font-size: 32px;
  padding-top: 6px;
  color: #22b35e;
}
.me-sender-file .file-wrap .file-content {
  display: flex;
  flex-flow: column;
  font-size: 14px;
  width: 100%;
  overflow: hidden;
}
.me-sender-file .file-wrap .file-content .file-name {
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me-sender-file .file-wrap .file-content .file-size {
  color: #999;
}
.me-sender .percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #1677ff;
  font-size: 14px;
}
.me-sender .close-icon {
  position: absolute;
  top: -0.5em;
  right: -0.5em;
  user-select: none;
  z-index: 1;
  cursor: pointer;
  color: #666;
  transition: all 0.3s;
  opacity: 0;
}
.me-sender .close-icon:hover {
  color: #000;
}
.me-sender-image {
  width: 68px;
  height: 68px;
  position: relative;
}
.me-sender-image:hover .close-icon {
  opacity: 1;
}
.me-sender-image .ant-image {
  height: 100%;
  width: 100%;
}
.me-sender-image .ant-image img {
  height: 100%;
  object-fit: cover;
}
.me-sender-image.upload-btn {
  border: 1px dashed #d8d8d8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}
.me-sender-image.upload-btn .me-upload-file {
  line-height: 1;
}
.me-sender-image.upload-btn .plus-icon {
  font-size: 28px;
  line-height: 1;
  color: #999;
  transition: all 0.3s;
}
.me-sender-image.upload-btn:hover {
  border-color: #1677ff;
}
.me-sender-image.upload-btn:hover .plus-icon {
  color: #1677ff;
}
.me-sender-prefix {
  display: flex;
  align-items: center;
}
.me-sender-upload {
  display: flex;
  flex-flow: column;
  gap: 10px;
  align-items: center;
  padding: 12px;
}
.me-sender-upload-icon {
  font-size: 60px;
}
.me-sender-upload-btn.ant-btn {
  border-radius: 8px;
}
.me-sender-header {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  width: 100%;
  max-height: 240px;
  border: 1px solid #d8d8d8;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-sizing: border-box;
  border-color: #1677ff;
  border-bottom-color: #d8d8d8;
  background-color: #fff;
  overflow: hidden;
  transition: all 0.3s;
  z-index: 1;
}
.me-sender-header-inner {
  height: 100%;
  max-height: 240px;
  overflow: hidden;
  display: flex;
  flex-flow: column;
}
.me-sender-header-title {
  font-size: 14px;
  background-color: #f3f3f3;
  display: flex;
  align-items: center;
  padding: 0 12px;
  line-height: 40px;
}
.me-sender-actions {
  display: flex;
  gap: 10px;
}
.me-sender-content {
  display: flex;
  gap: 10px;
  padding: 12px;
  align-items: flex-end;
  transition: all 0.24s;
  border-radius: 12px;
  background-color: #fff;
  flex: 1;
  border: 1px solid #d8d8d8;
  z-index: 1;
}
.me-sender-content:focus-within {
  border-color: #1677ff;
}
.me-sender-content.file {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-color: #1677ff;
}
.me-sender-content.focus {
  border-color: #1677ff;
}
.me-sender-link-button.ant-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  box-shadow: none;
  outline: none;
}
.me-sender-link-button.ant-btn::after {
  content: none;
}
.me-sender-link-button.ant-btn:hover {
  background-color: #e8e8e8;
}
.me-sender-link-button.ant-btn:active {
  background-color: #d8d8d8;
}
.me-sender-link-button.ant-btn .me-icon {
  font-size: var(--font-size-medium);
}
.me-sender-speech-button.ant-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  box-shadow: none;
  outline: none;
}
.me-sender-speech-button.ant-btn::after {
  content: none;
}
.me-sender-speech-button.ant-btn:hover {
  background-color: #e8e8e8;
}
.me-sender-speech-button.ant-btn:active {
  background-color: #d8d8d8;
}
.me-sender-speech-button.ant-btn .me-icon {
  color: #1677ff;
  font-size: var(--font-size-medium);
}
.me-sender-speech-loading-button.ant-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  box-shadow: none;
  outline: none;
}
.me-sender-speech-loading-button.ant-btn::after {
  content: none;
}
.me-sender-speech-loading-button.ant-btn:hover {
  background-color: #e8e8e8;
}
.me-sender-speech-loading-button.ant-btn:active {
  background-color: #d8d8d8;
}
.me-sender-speech-loading-button.ant-btn .me-icon {
  color: #1677ff;
  font-size: var(--font-size-medium);
}
.me-sender-button.ant-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  border: none;
  box-shadow: none;
}
.me-sender-button.ant-btn .me-icon {
  color: #fff;
  font-size: var(--font-size-medium);
}
.me-sender-button.ant-btn[disabled] {
  background-color: #1677ff;
  opacity: 0.5;
}
.me-sender-button.ant-btn[disabled]:hover {
  opacity: 0.4;
  background-color: #1677ff;
}
.me-sender-loading-button.ant-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
  border: none;
}
.me-sender-loading-button.ant-btn .me-icon {
  color: #1677ff;
  font-size: var(--font-size-medium);
}
.me-sender-loading-button.ant-btn .me-icon .loading-icon {
  width: 32px;
  height: 32px;
}
.me-sender-text {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  transition: all 0.24s;
  min-height: auto;
  align-self: center;
  padding: 0;
  overflow-y: hidden;
}
